// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.scripting.objects;

import java.util.ArrayList;
import zombie.core.skinnedmodel.model.ModelMesh;
import zombie.scripting.ScriptParser;

public final class AnimationsMesh extends BaseScriptObject {
    public String name = null;
    public String meshFile = null;
    public final ArrayList<String> animationDirectories = new ArrayList();
    public ModelMesh modelMesh = null;

    public void Load(String _name, String totalFile) {
        this.name = _name;
        ScriptParser.Block block = ScriptParser.parse(totalFile);
        block = (ScriptParser.Block)block.children.get(0);

        for (ScriptParser.Value value : block.values) {
            String string0 = value.getKey().trim();
            String string1 = value.getValue().trim();
            if ("meshFile".equalsIgnoreCase(string0)) {
                this.meshFile = string1;
            } else if ("animationDirectory".equalsIgnoreCase(string0)) {
                this.animationDirectories.add(string1);
            }
        }
    }

    public void reset() {
        this.meshFile = null;
        this.animationDirectories.clear();
        this.modelMesh = null;
    }
}
